const SERVER_NAME_AUTH = "/vaie-cloud-auth"
const SERVER_NAME_CUSTOMER = "/vaie-cloud-customer"
const URL_PREFIX_SYSTEM = SERVER_NAME_AUTH+"/system"
const URL_PREFIX_USER = SERVER_NAME_CUSTOMER+"/v1/cust/user"

export default ({request}) =>({

    SYSTEM_USER_LOGIN( params = {}) {
        const url = URL_PREFIX_SYSTEM+'/login'
        // 接口请求
        return request({
            url: url,
            method: 'get',
            params
        })
    },
    SYSTEM_USER_LOGOUT( params = {}) {
        const url = URL_PREFIX_SYSTEM+'/logout'
        // 接口请求
        return request({
            url: url,
            method: 'get',
            params
        })
    },
    SYSTEM_USER_INFO( params = {}){
        const url = URL_PREFIX_USER+'/userInfo'
        // 接口请求
        return request({
            url: url,
            method: 'get',
            params
        })
    },
    SYSTEM_USER_LOGIN_GITEE( params = {}){
        const url = URL_PREFIX_SYSTEM+'/gitee'
        // 接口请求
        return request({
            url: url,
            method: 'get',
            params
        })
    }

})
